﻿using System.Collections.Generic;

namespace Shell.DomainDot
{
    public static class DomainInjectors
    {
        private static List<IDomainInjector> injectors;

        static DomainInjectors()
        {
            injectors = new List<IDomainInjector>();
            injectors.Add(new WithAllInjector());
            injectors.Add(new WithAllInjector_1());
            injectors.Add(new MainInjector());
            injectors.Add(new WithOneInjector());
            injectors.Add(new WithManyInjector());
            injectors.Add(new WithOneInjector_1());
            injectors.Add(new WithManyInjector_1());
        }

        public static IEnumerable<IDomainInjector> Injectors
        {
            get { return injectors; }
        }

        public static void Add(IDomainInjector injector)
        {
            injectors.Add(injector);
        }

        public static void Remove(IDomainInjector injector)
        {
            injectors.Remove(injector);
        }
    }
}
